<template>
    <div style="padding: 10px;width: 100%;">
        <div style="color: rgb(9, 83, 156);font-size: 20px;border-bottom: 1px solid rgb(187, 189, 190);
            width: 100%;margin-bottom: 30px;text-decoration: none;">
            修改表单配置
        </div>
        <div>
            <span>表单名称&nbsp;</span>
            <el-input placeholder="请输入内容" v-model="input" clearable style="width: 300px;">
            </el-input>
        </div>
        <div style="margin: 30px 0px;">
            <span>字段数量&nbsp;</span>
            <el-input placeholder="请输入内容" v-model="input2" clearable style="width: 300px;">
            </el-input>
        </div>

        <div>
            <el-button type="primary" style="margin:20px 70px;" @click="queren" >确认</el-button>
            <el-button @click="quxiao">取消</el-button>
        </div>
    </div>
</template>

<script>
export default {
    data() {
        return {
            input: '',
            input2: " ",
            page:this.$store.state.wuJi_page
        }
    },
    methods: {
        queren() {
               this.$store.commit("euJi_page",Math.ceil(this.$store.state.wujiid / 5-1)) 
                
            this.$axios.patch(`/wuJiFour/${this.$store.state.wujiid}`, {
                mingcheng: this.input,
                shuliang: this.input2,
            }).then(() => {

                this.$router.push(`/home/knowledge/wuJiD`)
            })
        },
        quxiao() {
            this.$router.push("/home/knowledge/wuJiD")
        },
    }
}
</script>

<style></style>
